
/**
 * Write a description of class SimpleCreep here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
import java.awt.*;
public class SimpleCreep extends CREEP
{
    public SimpleCreep(int x, int y, int speed, int health)
    {
        super(x,y,speed,health);
        reward = ((health+speed)/((health+speed)/2)*10/8);
    }
    
    public void paint(Graphics g)
    {
        g.drawOval(xPos-5, yPos-5, 10, 10);
        g.setColor(Color.green);
        //Rechteck zeichnen mit prozentualem Anteil des HP-Balkens auf 10 Pixel
        g.fillRect(xPos-5, yPos-8, Math.round((float)health/fullhealth*10), 2);
        g.setColor(Color.black);
    }
    
    public boolean freezeable()
    {
        return true;
    }
}
